package com.lottery.game.controller.v2.user.dto;

import java.io.Serializable;

import com.lottery.game.core.validator.annotation.Validate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="UpdateUserPwdRequest", description="修改用户登陆密码")
public class UpdateUserPwdRequest implements Serializable {

	private static final long serialVersionUID = 2751915718623341869L;

	@ApiModelProperty(value="userPwd", name="新密码",required = true)
	@Length(min=8,max=16,message = "密码长度8-16位之间")
	@NotNull
	private String userPwd;

	@ApiModelProperty(value="oldPwd", name="旧密码",required = true)
	private String oldPwd;

}
